package com.suming.springboot_game.service.impl;

import com.suming.springboot_game.entity.Construct;
import com.suming.springboot_game.entity.Role;
import com.suming.springboot_game.mapper.ConstructMapper;
import com.suming.springboot_game.service.ConstructService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConstructServiceImpl implements ConstructService {
    @Autowired
    private ConstructMapper constructMapper;

    @Override
    public List<Construct> selectPage(Integer pageNum, Integer pageSize, String name) {
        return constructMapper.page(pageNum,pageSize,name);
    }

    @Override
    public Integer countByName(String name) {
        return constructMapper.countByName(name);
    }

    @Override
    public Integer jianzao(Construct construct) {
        return constructMapper.jianzao(construct);
    }

    @Override
    public Integer destroy(List<Integer> ids) {
        return constructMapper.destroy(ids);
    }
}
